<template>
    <div>
        <Header @refresh="refresh"></Header>
        
        <router-view :key="refresh_view"></router-view>
    </div>
</template>

<script>
import Header from '@/components/Header'

export default {
    name: 'Index',
    components: {
        Header
    },
    data() {
        return {
            refresh_view: ''
        }
    },
    methods: {
        //刷新
        refresh() {
            this.refresh_view = new Date().getTime()
        }
    }
}
</script>

<style lang="scss" scoped>

</style>